package com.ruoyi.web.controller.warning;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.warning.domain.query.VlansQuery;
import com.ruoyi.warning.service.IVlansService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author chenhc
 * @since 2025-04-02
 */
@RestController
@RequestMapping("/vlans")
@Api(tags = "vlans", description = "用于处理vlans相关操作的控制器")
public class VlansController {
@Resource
private IVlansService vlansService;
    @ApiOperation("获取vlans")
    @GetMapping(value = "/getVlans")
    public R getVlans(VlansQuery query)
    {
        return R.ok(vlansService.getVlans(query));
    }
}
